import type { LoginResult } from "@/types/member"
import { http } from "@/utils/http"
type LoginParams = {
  code: string,
  encryptedData: string,
  iv: string
}
// 小程序登录(企业版本)
export const postLoginWeixinAPI = (data:LoginParams)=>{
  return http<LoginResult>({
    method:'POST',
    url:'/login/wxMin',
    data,
  })
}

// 小程序登录-内测版 phoneNumber模拟手机号
export const postLoginWeixinMinSimpleAPI = (phoneNumber:string)=>{
  return http<LoginResult>({
    method:'POST',
    url:'/login/wxMin/simple',
    data:{phoneNumber}
  })
}